package com.example.shiwu.db.model;

import com.example.shiwu.db.annotation.DbFiled;
import com.example.shiwu.db.annotation.DbPrimaryKey;
import com.example.shiwu.db.annotation.DbTable;

@DbTable("tb_alarm")
public class Alarm {
    @DbPrimaryKey(value = "id", isAuto = true)
    @DbFiled("id")
    public Integer id;
    @DbFiled("item_id")
    public String itemId;//项目ID
    @DbFiled("send_id")
    public String sendId;//项目ID
    @DbFiled("sn")
    public String sn;//项目ID
    @DbFiled("status")
    public Integer status;//状态 0告警1解除告警2删除
    @DbFiled("alarm_msg")
    private String alarmMsg;//告警内容
    @DbFiled("create_time")
    private String createTime;
    @DbFiled("update_time")
    private String updateTime;

    public Integer getId() {
        return id;
    }

    public void setId(Integer id) {
        this.id = id;
    }


    public String getItemId() {
        return itemId;
    }

    public void setItemId(String itemId) {
        this.itemId = itemId;
    }

    public String getSendId() {
        return sendId;
    }

    public void setSendId(String sendId) {
        this.sendId = sendId;
    }

    public String getSn() {
        return sn;
    }

    public void setSn(String sn) {
        this.sn = sn;
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    public String getAlarmMsg() {
        return alarmMsg;
    }

    public void setAlarmMsg(String alarmMsg) {
        this.alarmMsg = alarmMsg;
    }

    public String getCreateTime() {
        return createTime;
    }

    public void setCreateTime(String createTime) {
        this.createTime = createTime;
    }

    public String getUpdateTime() {
        return updateTime;
    }

    public void setUpdateTime(String updateTime) {
        this.updateTime = updateTime;
    }

    public Alarm(String itemId) {
        this.itemId = itemId;
    }

    public Alarm() {
    }

    public Alarm(Integer id) {
        this.id = id;
    }
}
